import javax.swing.*;
import javax.swing.JButton;



import javax.swing.*;
import javax.swing.JButton;
import java.awt.Font;
import java.awt.Color;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;



public class AdminGUI extends JPanel{
    
    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private JTable table;
    int location;
    public AdminGUI() {
        setBackground(Color.LIGHT_GRAY);
        
        JButton btnLogin = new JButton("Logout");
        btnLogin.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                location = 33;
            }
        });
        btnLogin.setBounds(10, 218, 193, 23);
        
        setLayout(null);
        add(btnLogin);
        
        JButton btnNewButton = new JButton("Add New Patient");
        btnNewButton.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                location = 13;
            }
        });
        btnNewButton.setBounds(10, 150, 193, 23);
        add(btnNewButton);
        
        JButton btnEditOldPetient = new JButton("Search Patients");
        btnEditOldPetient.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                location = 2;
            }
        });
        btnEditOldPetient.setBounds(256, 150, 232, 23);
        add(btnEditOldPetient);
        
        table = new JTable();
        table.setBounds(241, 44, 0, 0);
        add(table);
        
        JButton btnViewAppointments = new JButton("View Appointments");
        btnViewAppointments.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                location = 6;
            }
        });
        btnViewAppointments.setBounds(256, 115, 254, 23);
        add(btnViewAppointments);
        
        JButton btnCreateDoctorsOrders = new JButton("Search Users");
        btnCreateDoctorsOrders.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                location = 8;
            }
        });
        btnCreateDoctorsOrders.setBounds(10, 184, 193, 23);
        add(btnCreateDoctorsOrders);
        
        JButton btnAddNewUser = new JButton("Add New User");
        btnAddNewUser.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent arg0) {
                location = 12;
            }
        });
        btnAddNewUser.setBounds(10, 115, 193, 23);
        add(btnAddNewUser);
        
        JLabel lblSystemAdministratorHome = new JLabel("System Administrator Home Screen");
        lblSystemAdministratorHome.setFont(new Font("Arial", Font.BOLD, 20));
        lblSystemAdministratorHome.setBounds(10, 10, 359, 30);
        add(lblSystemAdministratorHome);
        
        JLabel lblWhatWouldYou = new JLabel("What would you like to do?");
        lblWhatWouldYou.setBounds(10, 73, 208, 16);
        add(lblWhatWouldYou);

}
    public int getLoc(){
        return location;
    }
    public void setLoc(int i)
    {
        location = i;
    }
}